Don't forget to exit with proper code