importing os for proper exit