added sys module to exit