handler wont be constructed if an exception was thrown