Handling KeyboardInterrupt as decorator
A new handy decorator to handle your faulty simulations! Need to change a minor bug in the code but don't want to kill your simulation? Just decorate your simulation main function with this little guy and have the opportunity to call
ctrl+c and still decide whether to kill your simulation or invoke a
save function and save some valuable content!