Terminates Application when an unexpected error occured.