Server ungracefully crashes - trying to find bug