Added a function to generate a timebased filename
Added a function to save the internal states
catch term signal to save internal states
fixed format for lastprocessed file in state file
Added pcapdj_ prefix to saved files
Terminating program when states were saved
Info message when the state file is written
Save also internal states if SIGINT is sent