Gracefully handling BeEF connection exceptions.