handle non-int port arguments gracefully