Deadlock because of an unhandled exception within a lock and more...