Basic Error Handling

Added basic error handling for source or destination outside of provided
nodes.