Removing traps
End of exit_func
Done: 0