added MIME type application/x-trash
fixed segfault on exit