e: be a nice boy and free the file descriptor used by the system logger
b: fix creation of shared_ptr to be exception-safe
b: fix creation of shared_ptr to be exception-safe (XMS)