close databases upon SIGINT and rethrow signal out in custom handler