Fixed pre-existing connections crashing a server during restart.

Added checks to make sure the project exists, if not it emits a message to the client indicating an error at which point the client shows a hidden div at the top of the page that states that a loading error happened and that they should refresh the page. Fixes issue #36