print exception before finally executes