If an exception is thrown then this code won't run, causing the waiting code to block. So this should be in a ```finally``` block