Add a loud noise to the end of compilation, like a fog horn or something. Assuming you're not writing web software and compiling locally, you could also add a command to kill your Chrome processes. If you lost a tab you really liked, you could always pull it back from your history.