Added a fix with socket from incrementing and replacing it with another
variable. Added socket close and brought down the datagramsocket to the
method level to ensure there the socket will not be conflicting with
each other. Moved the exception to the controller (main).