fix return type of SafeHttpServer.close

changed it from void to Future to avoid crashes