stop()

attempt to stop the server.

returns:

on success: $pid of the server
on failure: -1