Removed exit from on-exit call.