Corrected a bug which doesn't creates the networkmanager well (it doesn't assign the given format)
Removed wrong closing operation
Added more information to the custom exceptions