Server now closes after bad request (NullPointer exception cought)