Import and user interrupt exception handling added