Fixes #157

Add better error handling when compilation fails. If directory
is not deleted after failed compilation, inform user.