Extract interruption.c

interruption.c is extracted from main.c for handling all interruptions