try to catch signals for graceful sever shutdown