Remove excessive logging. Add signal handler callback.