Added support for multiple event-handlers for notifications and proc libraries.
File handles opened by a process are now closed when it ends.