Trapped signal now successfully removes temporary_directory