added the way to easily bind EXIT signal handler