Added a function to check for running sessions using the same core configuration file.
Added a function to check for remaining space on the library partition and stop if it drops below a configured level.
Both these ideas were inspired by Luc's suggestions.