Fixed issue #26
Created an try-catch to catch the unhandled exceptions
Edited by Mathias Årstad Olsen
Created an try-catch to catch the unhandled exceptions
changed title from Fixed server crash on out_of_range and invalid_argument to Fixed issue #26