Safe enqueue

remove unsafe method calls, and catch some error to log